package o;

import com.huawei.appgallery.serverreqkit.api.bean.ResponseBean;
import com.huawei.appgallery.serverreqkit.api.listener.IServerCallBack;
import com.huawei.appmarket.service.appdetail.bean.report.GeneralResponse;
import com.huawei.appmarket.service.appdetail.bean.report.GeneralResponse$PushInfo;
import com.huawei.appmarket.service.appdetail.bean.report.GeneralResponse$PushInfoData;

class dgk$c implements IServerCallBack {
    private String ˊ;

    public dgk$c(String str) {
        this.ˊ = str;
    }

    public void prePostResult(BaseRequest o_cvu, ResponseBean responseBean) {
    }

    public void notifyResult(BaseRequest o_cvu, ResponseBean responseBean) {
        if ((responseBean instanceof GeneralResponse) && responseBean.getResponseCode() == 0) {
            GeneralResponse generalResponse = (GeneralResponse) responseBean;
            if (generalResponse.getRtnCode_() == 0) {
                GeneralResponse$PushInfo ˏ = generalResponse.ˏ();
                if (ˏ == null || ˏ.ˋ() == null) {
                    Logger.e("StoreUserBirthObserver", "get Push info error");
                    dgk.ˋ(this.ˊ, System.currentTimeMillis(), 18);
                    return;
                }
                Logger.ˎ("StoreUserBirthObserver", "method: " + o_cvu.getMethod_() + ", get pushInfo success");
                GeneralResponse$PushInfoData ˋ = ˏ.ˋ();
                dgk.ˋ(this.ˊ, ˋ.ˏ(), ˋ.ˊ());
                return;
            }
            Logger.e("StoreUserBirthObserver", "get data error, code: " + generalResponse.getRtnCode_());
            dgk.ˋ(this.ˊ, System.currentTimeMillis(), 18);
        }
    }
}
